home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
FDF101.ARJ
/
ELIB.ZOO
/
ftimes.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-30
|
458b
|
15 lines
#include <dir.h>
/*
* cmptime
*
* given two files, return positive if the first has a more recent modification
* date/time, zero if the files have the same modification date/time or
* negative if the second is more recent.
*/
long cmptime(const struct ffblk *a, const struct ffblk *b)
{
return (((unsigned long)a->ff_fdate) << 16 | (unsigned long)a->ff_ftime) -
(((unsigned long)b->ff_fdate) << 16 | (unsigned long)b->ff_ftime);
}